var mongoose = require('mongoose'); 
var config = require('./config'); 

module.exports = function(){

	var db = mongoose.connect(config.mongodb);

	require('../app/model/news.server.model');

	return db;
};